﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 用户审核管理基础输入参数
    /// </summary>
    public class OccupantAuditBaseInput
    {
        /// <summary>
        /// 姓名
        /// </summary>
        public virtual string? OccupantName { get; set; }
        
        /// <summary>
        /// 电话
        /// </summary>
        public virtual string? OccupantPhone { get; set; }
        
        /// <summary>
        /// 性别
        /// </summary>
        public virtual bool? OccupantGender { get; set; }
        
        /// <summary>
        /// 住址(依赖键)
        /// </summary>
        public virtual int? OccupantAddress { get; set; }
        
        /// <summary>
        /// 身份证号
        /// </summary>
        public virtual string? OccupantNo { get; set; }
        
        /// <summary>
        /// 住户类型 1.业主 2.租户 3.快递
        /// </summary>
        public virtual int? OccupantType { get; set; }
        
        /// <summary>
        /// 提交、审核、驳回时间
        /// </summary>
        public virtual DateTime? OccupantTime { get; set; }
        
        /// <summary>
        /// 有效期限
        /// </summary>
        public virtual string? OccupantExpirationTime { get; set; }
        
        /// <summary>
        /// 0.待审核1.已审核2.已驳回3.已迁出
        /// </summary>
        public virtual int? OccupantAuditStatus { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual int? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public virtual string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual int? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public virtual string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 创建者部门Id
        /// </summary>
        public virtual long? CreateOrgId { get; set; }
        
        /// <summary>
        /// 创建者部门名称
        /// </summary>
        public virtual string? CreateOrgName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 用户审核管理分页查询输入参数
    /// </summary>
    public class PageOccupantAuditInput 
    {

    public int PageIndex { get; set; } = 1;
    public int PageSize { get; set; } = 10;
    /// <summary>
    /// 姓名
    /// </summary>
    public string? OccupantName { get; set; }
        
        /// <summary>
        /// 电话
        /// </summary>
        public string? OccupantPhone { get; set; }
        
        /// <summary>
        /// 住址(依赖键)
        /// </summary>
        public string? OccupantAddress { get; set; }
        public int? OccupantType { get; set; }
    public int OccStatus { get; set; }
}

    /// <summary>
    /// 用户审核管理增加输入参数
    /// </summary>
    public class AddOccupantAuditInput : OccupantAuditBaseInput
    {
        /// <summary>
        /// 软删除
        /// </summary>
        [Required(ErrorMessage = "软删除不能为空")]
        public override bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 用户审核管理删除输入参数
    /// </summary>
    public class DeleteOccupantAuditInput : BaseIdInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public int OccupantAuditId { get; set; }
        
    }

    /// <summary>
    /// 用户审核管理更新输入参数
    /// </summary>
    public class UpdateOccupantAuditInput : OccupantAuditBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public int OccupantAuditId { get; set; }
        
    }

    /// <summary>
    /// 用户审核管理主键查询输入参数
    /// </summary>
    public class QueryByIdOccupantAuditInput : DeleteOccupantAuditInput
    {

    }
